package zero.tech.games.pdk.event;

import zero.tech.core.ZeroContext;
import zero.tech.core.event.EventListener;
import zero.tech.core.event.EventType;
import zero.tech.games.common.BigCalSource;
import zero.tech.games.logic.common.Room;
import zero.tech.games.logic.data.LogicEventType;
import zero.tech.games.pdk.service.api.IPdkService;

public class RoomDissolutionFree implements EventListener{

	@Override
	public EventType netEventType() {
		return LogicEventType.ROOM_DISSOLUTION_FREE;
	}

	@Override
	public void notifyEvent(Object... objs) {
		Room room=(Room) objs[0];
		IPdkService pdkService=ZeroContext.getInstance(IPdkService.class);
		pdkService.bigCalculate(room,BigCalSource.DISSOLUTION_BIG_CAL);
	}

	@Override
	public boolean asynchronous() {
		return false;
	}

}
